package com.Brave.manager.Demo02;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Demo06 {
    public static void main(String[] args) throws IOException {
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("D:\\JAVA\\File\\b.txt"));

        Student s = new Student("李佳奇", 30);

        oos.writeObject(s+" ");

        oos.close();

    }
}
